home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 January
/
PCWorld_2007-01_cd.bin
/
v cisle
/
autoit
/
autoit-v3.2.0.1-setup.exe
/
Examples
/
Helpfile
/
GUIGetCursorInfo.au3
< prev
next >
Wrap
Text File
|
2006-06-17
|
431b
|
21 lines
#include <GUIConstants.au3>
$IDC = 0
HotkeySet("{Esc}", "GetPos")
GUICreate("Press Esc to Get Pos", 400, 400)
$x=GUICtrlCreateLabel ("0", 10, 10,50)
$y=GUICtrlCreateLabel ("0", 10, 30,50)
GUISetState()
; Run the GUI until the dialog is closed
Do
$msg = GUIGetMsg()
Until $msg = $GUI_EVENT_CLOSE
Exit
Func GetPos()
$a=GUIGetCursorInfo()
GUIctrlSetData($x,$a[0])
GUIctrlSetData($y,$a[1])
EndFunc